<form method="POST" action="">
<table>
<tr>
<td>
<input name="emailform" type="email" placeholder="name@domain.com">
</td>
<td>
<input name="nameform" type="text" placeholder="Ваше имя">
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
<textarea name="voprosform" placeholder="Ваш вопрос"></textarea>
<input name="submitform" class="sub" type="submit">
</form>
<?php

    if (isset($_POST['submitform']))
    {
        $emailadress = htmlspecialchars($_POST['emailform']);
        $nameuser = htmlspecialchars($_POST['nameform']);
        $vopros = htmlspecialchars($_POST['voprosform']);
        
        
        $connection = connect($config);
        
        $mask = array('email' => $emailadress, 'name'=> $nameuser, 'vopros' => $vopros);

        $queryString = "INSERT INTO question (`EmailAfter`,`NameAfter`,`Question`,`QuestionDate`)
                        VALUES (:email,:name,:vopros,NOW())";
        
        insertquery ($queryString,$connection,$mask);
        

        
    }



?>